import request from '@/utils/request'

// 查询排风计划列表
export function listExhaustSchedule(query) {
  return request({
    url: '/system/exhaustSchedule/list',
    method: 'get',
    params: query
  })
}

// 查询排风计划详细
export function getExhaustSchedule(id) {
  return request({
    url: '/system/exhaustSchedule/' + id,
    method: 'get'
  })
}

// 新增排风计划
export function addExhaustSchedule(data) {
  return request({
    url: '/system/exhaustSchedule',
    method: 'post',
    data: data
  })
}

// 修改排风计划
export function updateExhaustSchedule(data) {
  return request({
    url: '/system/exhaustSchedule',
    method: 'put',
    data: data
  })
}

// 删除排风计划
export function delExhaustSchedule(id) {
  return request({
    url: '/system/exhaustSchedule/' + id,
    method: 'delete'
  })
}

// 导出排风计划
export function exportExhaustSchedule(query) {
  return request({
    url: '/system/exhaustSchedule/export',
    method: 'get',
    params: query
  })
}